<template>
    <div class="VInfoCard">
        <el-card class="VInfoCard-card">
            <div class="title">
                {{ title }}
            </div>
            <div class="VInfoCard-content">
                <slot></slot>
            </div>
        </el-card>
    </div>
</template>

<script>
import router from '@/router';
export default {
    name: "VInfoCard",
    props: {
        title: {
            type: String,
            default: '标题'
        },
        back: {
            type: Boolean,
            default: false
        }

    },

    data() {
        return {

        };
    },
    methods: {
        goBack() {
            router.go(-1)
        }
    },
    watch: {

    }
}
</script>
<style>
.el-card__body {
    padding: 12px !important;
}
</style>

<style lang="scss" scoped>
.VInfoCard {
    .VInfoCard-card {
        @include cardGradient;

    }


    .VInfoCard-content {
        // margin-left: 100px !important;
    }

    .title {
        font-size: 20px;
        margin-bottom: 10px;
        color: #FF9C00;
        font-size: 24px;
        font-weight: 600;

        .svg-back {
            cursor: pointer;
        }
    }

}
</style>
